import request from '@/utils/request'

// 查询瓦斯分站与人员分站关联关系列表
export function listRelation(query) {
    return request({
        url: '/safeStaffRelation/relation/list',
        method: 'get',
        params: query
    })
}

// 查询瓦斯分站与人员分站关联关系详细
export function getRelation(id) {
    return request({
        url: '/safeStaffRelation/relation/' + id,
        method: 'get'
    })
}

// 新增瓦斯分站与人员分站关联关系
export function addRelation(data) {
    return request({
        url: '/safeStaffRelation/relation',
        method: 'post',
        data: data
    })
}

// 修改瓦斯分站与人员分站关联关系
export function updateRelation(data) {
    return request({
        url: '/safeStaffRelation/relation',
        method: 'put',
        data: data
    })
}

// 删除瓦斯分站与人员分站关联关系
export function delRelation(id) {
    return request({
        url: '/safeStaffRelation/relation/' + id,
        method: 'delete'
    })
}

//瓦斯分站列表
export function WSrelation(query) { 
     return request({
        url: '/safeStaffRelation/relation/safeStationList',
        method: 'get',
        params: query
    })
}

//人员分站列表
export function RYrelation(query) { 
     return request({
        url: '/safeStaffRelation/relation/staffStationList',
        method: 'get',
        params: query
    })
}
